<?php
/**
 * Custom Slideshow
 *
 * @package Custom Slideshow
 * @subpackage Custom Slideshow
 * @version   1.0
 * @author    
 * @copyright 
 * @license 
 *
 */

// no direct access
defined('_JEXEC') or die('Restricted access');

// Include the helper functions only once
require_once( dirname(__FILE__).DS.'helper.php' );

$folder	= modCustomSlideshowHelper::getFolder($params);
$images	= modCustomSlideshowHelper::getImages($params, $folder);

if (!count($images)) 
{
	echo JText::_('No Images Available. <br><br>');
	return;
}

modCustomSlideshowHelper::loadScripts($params);

// Include display template
require(JModuleHelper::getLayoutPath('mod_customslideshow'));

?>